﻿@model OT.Models.Users
<div class="editor-label">
    <div class="editor-field" id="captcha">
        <img alt="Captcha" id="cap" src="@Url.Action("CaptchaImage")" style="width:100px;height:60px" />
        <a href="javascript:void(0)" id="ref"><i class="fa fa-refresh"></i>REFRESH</a>
    </div>
</div>
<script type="text/javascript">
$(document).on("click", "#ref", null, function (e) {
    $("#cap").attr('src', '@Url.Action("CaptchaImage")?' + new Date().getTime());
})
</script>

